package io.kiki.stack.netty.exception;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Setter
@Getter
public class DeserializationException extends CodecException {
    private static final long serialVersionUID = 1L;

    private boolean serverSide = false;

    public DeserializationException() {

    }

    public DeserializationException(String message) {
        super(message);
    }

    public DeserializationException(String message, boolean serverSide) {
        this(message);
        this.serverSide = serverSide;
    }

    public DeserializationException(String message, Throwable cause) {
        super(message, cause);
    }

    public DeserializationException(String message, Throwable cause, boolean serverSide) {
        this(message, cause);
        this.serverSide = serverSide;
    }


}